import { IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class StatObjectDto {

    @ApiProperty({ description: '空间名', required: true })
    bucketName?: string;
    @ApiProperty({ description: '对象名', required: true })
    objectName?: string;

}

export class CopyObjectDto {

    @ApiProperty({ description: '空间名', required: true })
    bucketName?: string;
    @ApiProperty({ description: '对象名', required: true })
    objectName?: string;
    @ApiProperty({ description: '源对象名(需完整url)', required: true })
    sourceObject?: string;
    @ApiProperty({ description: 'etag', required: true })
    etag?: string;

}
